package com.hod.client.charge;

import java.util.Date;

import com.hod.client.backend.orm.client.GearsDataObject;
/**
 * @gears.table (name=Charge, namespace=hoddatabase)
 * @gears.index (name= idCharge, fields= idCharge)
 * @gears.namedQuery (name=FindAllById, sql="select :Charge where idLodging=?")
 * @gears.namedQuery (name=FindAll, sql="select :Charge")
 */
public class Charge implements GearsDataObject {
	public static final String FIND_ALL = "FindAll";
	public static final String FIND_ALL_BY_ID = "FindAllById";
	public static final String SUM_BY_ID_LODGING = "select sum(total) from Charge where idLodging=?";	
	/**
     * @gears.column (references=Lodging(idLodging))
     */
    private Integer idLodging;
    /**
     * @gears.id (length=10)
     */
    private Integer idCharge;
	/**
     * @gears.column (references=ChargeDescription(idChargeDescription))
     */
    private Integer idChargeDescription;
    /**
     * @gears.column
     */
    private Date date;
    /**
     * @gears.column
     */
    private Double total;
    
    
	public Integer getIdLodging() {
		return idLodging;
	}
	public void setIdLodging(Integer idLodging) {
		this.idLodging = idLodging;
	}
	public Integer getIdCharge() {
		return idCharge;
	}
	public void setIdCharge(Integer idCharge) {
		this.idCharge = idCharge;
	}
	public Integer getIdChargeDescription() {
		return idChargeDescription;
	}
	public void setIdChargeDescription(Integer idChargeDescription) {
		this.idChargeDescription = idChargeDescription;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public Double getTotal() {
		return total;
	}
	public void setTotal(Double total) {
		this.total = total;
	}
    
}
